package com.atguigu.spzx;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class springtask {
    @Scheduled(cron = "0/5 * * * * ?")//定义定时任务，实用@Scheduled朱姐 调度时间表达式
    public void helloworld(){
        log.info("helloworld");
    }
}
